package b_thread;

/**
 * @author Cheng-02
 * @version V1.0
 * @Package b_thread
 * @date 2024/4/7 下午5:58
 */
public class test08 {
    public static void main(String[] args) {
        new Thread(new Runnable() {
            @Override
            public void run() {
                for (int i = 0; i < 1000; i++) {
                    System.out.println("A");
                }
            }
        },"A").start();
        new Thread(new Runnable() {
            @Override
            public void run() {
                for (int i = 0; i < 1000; i++) {
                    System.out.println("B");
                }
            }
        },"B").start();
    }
}
